package com.boot.boottest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName book_info
 */
@TableName(value ="book_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BookInfo implements Serializable {
    /**
     * 图书id
     */
    @TableId(value = "book_id", type = IdType.AUTO)
    private Integer bookId;

    /**
     * 图书编号
     */
    @TableField(value = "book_code")
    private String bookCode;

    /**
     * 图书名称
     */
    @TableField(value = "book_name")
    private String bookName;

    /**
     * 图书类别
     */
    @TableField(value = "book_type")
    private Integer bookType;

    /**
     * 图书作者
     */
    @TableField(value = "book_author")
    private String bookAuthor;

    /**
     * 出版社
     */
    @TableField(value = "publish_press")
    private String publishPress;

    /**
     * 出版日期
     */
    @TableField(value = "publish_date")
    private LocalDateTime publishDate;

    /**
     * 是否借阅
     */
    @TableField(value = "is_borrow")
    private Integer isBorrow;

    /**
     * 创建人
     */
    @TableField(value = "createdBy")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "creation_time")
    private LocalDateTime creationTime;

    /**
     * 最新更新时间
     */
    @TableField(value = "lash_updatetime")
    private LocalDateTime lashUpdatetime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}